import {getCache, setCache} from "@/utils/cache.ts"


export function getToken() {
  return getCache("Admin-Token")
}

export function setToken(token: string) {
  return setCache("Admin-Token", token)
}

//是否登录
export function isLogin() {
  if (!!getToken()) {
    console.log('已登录')
  } else {
    console.log('未登录')
  }
  return !!getToken()
}
